package com.song.druid.param;

import com.song.druid.annotation.ListGroupVaild;
import com.song.druid.api.Insert;
import com.song.druid.entity.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class BatchInsertParam {
    @ApiModelProperty("新增用户列表")
    @Valid
    @Size(min = 1, message = "至少新增一个用户")
    @ListGroupVaild(groups = {Insert.class})
    private List<UserInfo> datas;
}
